package sprinklerbee.views;

import javax.swing.JPanel;

import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.border.TitledBorder;
import java.awt.SystemColor;
import javax.swing.border.EtchedBorder;

@SuppressWarnings("serial")
public class ActivityPanel extends JPanel {

	public ActivityPanel(){
		
		setLayout(new GridLayout(3, 1 ,2, 5));
		setBackground(SystemColor.menu); 
		setPreferredSize(new Dimension(560, 100));
		// Schedule panel
		ScheduleSettingPanel setSchedulePanel = new ScheduleSettingPanel();
		setSchedulePanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), "Schedule Settings"));
		add(setSchedulePanel);
		
		
		SchedulePanel schedulePanel = new SchedulePanel();
		schedulePanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), "Schedule infomation"));
		schedulePanel.setBackground(SystemColor.menu);
		add(schedulePanel);

		// Configuration panel
		ConfigPanel configPanel = new ConfigPanel();
		configPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), "Configurations"));
		configPanel.setSize(new Dimension(560, 100));
		add(configPanel);
		
		}
}
